﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCLoginBox.ascx.cs" Inherits="NJL.Web.Controls.WUCLoginBox" %>
<%
    if (UserId == "" || UserName == "")
    {         
%>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        //示例9，综合效果
        var t9 = new PopupLayer({ trigger: "#secondlogin", popupBlk: "#blk9", closeBtn: "#close9", useOverlay: true, useFx: true,
            offsets: {
                x: 0,
                y: -41
            }
        });
        t9.doEffects = function (way) {
            if (way == "open") {
                this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                    this.popupLayer.animate({
                        left: ($(document).width() - this.popupLayer.width()) / 2,
                        top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                        opacity: 0.8
                    }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                } .binding(this));
                document.getElementById('Login').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
            }
            else {
                this.popupLayer.animate({
                    left: this.trigger.offset().left,
                    top: this.trigger.offset().top,
                    opacity: 0.1
                }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
            }
        }
    });
</script>
<div id="blk9" class="blk">
    <div class="popup_title">
        <span class="f_right"><a href="javascript:void(0)" id="close9">关闭</a></span>
        <ul>
            <li class="now"><a  href="<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>"
                target="main">登录</a> </li>
        </ul>
    </div>
    <div>
        <iframe id="Login" name="main" width="500" height="420" style="overflow: hidden;
            border: none;"></iframe>
    </div>
</div>
<%
    }
%>
        <!--登录-->
        <div class="f_right" style="width:256px; overflow:hidden;">
            
            <!--农家乐信息-->
            <div class="websiteinfo box" style="height:155px;width:250px;">
                <div class="titleWeb">
                </div>
                <div class="cont">
                    <div class="webinfo">
                        <p><strong><%=CITY_COUNT %></strong>个城市/地区</p>
                        <p><strong><%=COMPANY_COUNT.ToString("###,###,###")%></strong>农家乐，<strong><%=USER_COUNT.ToString("###,###,###")%></strong>个用户。</p>
                        <p><strong><%=LOCAL_COLOR_COUNT.ToString("###,###,###")%></strong>个特产，<strong><%=ATTRACTION_COUNT.ToString("###,###,###")%></strong>个景点。</p>
                    </div>
                    <p class="shenq">
                         <a target="_blank" href="http://<%=WEBSITE_DOMAIN %>/ditu.html">我不在其中，我要加入</a>
                    </p>
                </div>
            </div>

            <div class="help-guest m_top_5">
                <span class="help-guest-register"><a href="/Register.aspx" target="_blank" title="完全免费注册,赶快加入吧"></a></span>
                <span class="help-guest-login"><a id="secondlogin" style="cursor:pointer"  title="立即登录农家乐,享受快乐吧"></a></span>
            </div>
            <div class="fastlogin">
                <div>
                    <span><a id="aIndexLoginQQ" style="cursor:pointer" title="QQ登录" class="fastlogin_qq"></a></span>
                    <span><a id="aIndexLoginSina" style="cursor:pointer" title="新浪微博登录" class="fastlogin_sina"></a></span>
                    <span><a id="aIndexLoginRenren" style="cursor:pointer" title="人人登录" class="fastlogin_renren"></a></span>
                </div>
                <div class="">
                    您还可以通过这些快捷的方式登录。
                </div>
            </div>
        </div>

    <!--QQ LOGIN-->
    <script type="text/javascript">
        var openDivIndexLoginQQ;
        $(document).ready(function () {
            openDivIndexLoginQQ = new PopupLayer({ trigger: "#aIndexLoginQQ", popupBlk: "#blkIndexLoginQQ", closeBtn: "#aIndexLoginQQClose", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            openDivIndexLoginQQ.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById("iFrameIndexLoginQQ").src = '<%=WEBSITE_USRE_DOMAIN %>/logintoqq.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=FROM_URL %>&logintype=opendiv';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }
        }
      );
    </script>
    <div id="blkIndexLoginQQ" class="blk" style="width:585px;height:560px">
        <div class="popup_title">
            <span class="f_right"><a href="javascript:void(0)" id="aIndexLoginQQClose">关闭</a></span>
            <ul>
                <li class="now"><a target="main">登录</a></li>
                <li><strong class="green font14">乡村旅游第一网已与腾讯合作，支持QQ号码直接登录。</strong></li>
            </ul>
        </div>
        <div>
            <iframe id="iFrameIndexLoginQQ" name="main" width="550" height="520" style="overflow: hidden; border: none;" frameborder="no"></iframe>
        </div>
    </div>
    <!--SINA LOGIN-->
    <script type="text/javascript">
        var openDivIndexLoginSina;
        $(document).ready(function () {
            openDivIndexLoginSina = new PopupLayer({ trigger: "#aIndexLoginSina", popupBlk: "#blkIndexLoginSina", closeBtn: "#aIndexLoginSinaClose", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            openDivIndexLoginSina.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById("iFrameIndexLoginSina").src = '<%=WEBSITE_USRE_DOMAIN %>/logintosina.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=FROM_URL %>&logintype=opendiv';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }
        }
      );
    </script>
    <div id="blkIndexLoginSina" class="blk" style="width:575px;height:420px">
        <div class="popup_title">
            <span class="f_right"><a href="javascript:void(0)" id="aIndexLoginSinaClose">关闭</a></span>
            <ul>
                <li class="now"><a target="main">登录</a></li>
                <li><strong class="green font14">乡村旅游第一网已与新浪微博合作，支持新浪微博帐号直接登录。</strong></li>
            </ul>
        </div>
        <div>
            <iframe id="iFrameIndexLoginSina" name="main" width="570" height="370" style="overflow: hidden; border: none;" frameborder="no"></iframe>
        </div>
    </div>
    <!--RENREN LOGIN-->
    <script type="text/javascript">
        var openDivIndexLoginRenren;
        $(document).ready(function () {
            openDivIndexLoginRenren = new PopupLayer({ trigger: "#aIndexLoginRenren", popupBlk: "#blkIndexLoginRenren", closeBtn: "#aIndexLoginRenrenClose", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            openDivIndexLoginRenren.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById("iFrameIndexLoginRenren").src = '<%=WEBSITE_USRE_DOMAIN %>/renrencallback.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=FROM_URL %>&logintype=opendiv';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }
        }
      );
    </script>
    <div id="blkIndexLoginRenren" class="blk" style="width:585px;height:400px">
        <div class="popup_title">
            <span class="f_right"><a href="javascript:void(0)" id="aIndexLoginRenrenClose">关闭</a></span>
            <ul>
                <li class="now"><a target="main">登录</a></li>
                <li><strong class="green font14">乡村旅游第一网已与人人网合作，支持人人帐号直接登录。</strong></li>
            </ul>
        </div>
        <div>
            <iframe id="iFrameIndexLoginRenren" name="main" width="580" height="370" style="overflow: hidden; border: none;" frameborder="no"></iframe>
        </div>
    </div>
